import http from "../request/http"

// 处理User模块的请求,例如登陆、注册，添加好友，获取好友列表

// get请求
export function getFriendList(params){
    return http.get("/friend/list", params)
}

// export function getLiveKitToken(params) {
//     return http.get("/token", params)
// }

// 根据用户id获取历史消息+离线消息
export function getHistoryMessage(params) {
    return http.get("/message/history", params)
}

export function getRoomList(params) {
    return http.get("/roomlist", params)
}

// post请求
export function postRegister(params){
    return http.post("/register", params)
}

export function postLogin(params){
    return http.post("/login", params)
}

export function fileUpload(params) {
    return http.post("/file/upload", params)
}


